package io.renren.modules.bs.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.bs.dao.BsExtractDetailPatientHandleDao;
import io.renren.modules.bs.entity.BsExtractDetailPatientHandleEntity;
import io.renren.modules.bs.service.BsExtractDetailPatientHandleService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("bsExtractDetailPatientHandleService")
public class BsExtractDetailPatientHandleServiceImpl extends ServiceImpl<BsExtractDetailPatientHandleDao, BsExtractDetailPatientHandleEntity> implements BsExtractDetailPatientHandleService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BsExtractDetailPatientHandleEntity> page = this.page(
                new Query<BsExtractDetailPatientHandleEntity>().getPage(params),
                new QueryWrapper<BsExtractDetailPatientHandleEntity>()
        );

        return new PageUtils(page);
    }

}